.class public Lcom/waiqin365/base/print/PrintTemplateSettingActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static final a:Ljava/util/ArrayList;

.field public static final b:Ljava/util/ArrayList;

.field public static final c:Ljava/util/ArrayList;

.field public static final d:Ljava/util/ArrayList;

.field public static final e:Ljava/util/ArrayList;

.field public static final f:Ljava/util/ArrayList;

.field public static final g:Ljava/util/ArrayList;

.field public static final h:Ljava/util/ArrayList;

.field public static final i:Ljava/util/ArrayList;

.field public static final j:Ljava/util/ArrayList;

.field public static final k:Ljava/util/ArrayList;

.field public static final l:Ljava/util/ArrayList;


# instance fields
.field private A:Landroid/widget/EditText;

.field private B:Landroid/widget/EditText;

.field private C:I

.field private D:Ljava/lang/String;

.field private E:Landroid/os/Handler;

.field private F:Landroid/widget/LinearLayout;

.field private G:Landroid/widget/LinearLayout;

.field m:Ljava/lang/String;

.field private n:Landroid/widget/ImageView;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/TextView;

.field private q:I

.field private r:Landroid/widget/LinearLayout;

.field private s:Landroid/widget/LinearLayout;

.field private t:Landroid/widget/LinearLayout;

.field private u:Landroid/widget/LinearLayout;

.field private v:Landroid/widget/LinearLayout;

.field private w:Landroid/widget/LinearLayout;

.field private x:Landroid/widget/LinearLayout;

.field private y:Landroid/widget/ImageView;

.field private z:Landroid/widget/ImageView;


# direct methods
.method static constructor <clinit>()V
    .locals 9

    const/4 v8, 0x4

    const/4 v7, 0x3

    const/4 v6, 0x2

    const/4 v5, 0x1

    const/4 v4, 0x0

    new-instance v0, Ljava/util/ArrayList;

    new-array v1, v6, [Ljava/lang/String;

    const-string/jumbo v2, "\u6253\u5370\u57fa\u672c\u5355\u4f4d\u6570\u91cf"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u6253\u5370\u62a5\u8868\u5355\u4f4d\u5355\u4ef7"

    aput-object v2, v1, v5

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    new-array v1, v5, [Ljava/lang/String;

    const-string/jumbo v2, "\u6253\u5370\u57fa\u672c\u5355\u4f4d\u6570\u91cf"

    aput-object v2, v1, v4

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->b:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    new-array v1, v5, [Ljava/lang/String;

    const-string/jumbo v2, "\u6253\u5370\u57fa\u672c\u5355\u4f4d\u6570\u91cf"

    aput-object v2, v1, v4

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->c:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    new-array v1, v5, [Ljava/lang/String;

    const-string/jumbo v2, "\u6253\u5370\u57fa\u672c\u5355\u4f4d\u6570\u91cf"

    aput-object v2, v1, v4

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->d:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    new-array v1, v5, [Ljava/lang/String;

    const-string/jumbo v2, "\u6253\u5370\u57fa\u672c\u5355\u4f4d\u6570\u91cf"

    aput-object v2, v1, v4

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->e:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    new-array v1, v5, [Ljava/lang/String;

    const-string/jumbo v2, "\u6253\u5370\u57fa\u672c\u5355\u4f4d\u6570\u91cf"

    aput-object v2, v1, v4

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->f:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    const/16 v1, 0xa

    new-array v1, v1, [Ljava/lang/String;

    const-string/jumbo v2, "\u9500\u552e\u5355\u53f7"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u8f66\u53f7"

    aput-object v2, v1, v5

    const-string/jumbo v2, "\u9001\u8d27\u4eba"

    aput-object v2, v1, v6

    const-string/jumbo v2, "\u672c\u5355\u4f18\u60e0"

    aput-object v2, v1, v7

    const-string/jumbo v2, "\u672c\u5355\u5b9e\u6536"

    aput-object v2, v1, v8

    const/4 v2, 0x5

    const-string/jumbo v3, "\u672c\u5355\u5e94\u6536"

    aput-object v3, v1, v2

    const/4 v2, 0x6

    const-string/jumbo v3, "\u672c\u5355\u6b20\u6b3e"

    aput-object v3, v1, v2

    const/4 v2, 0x7

    const-string/jumbo v3, "\u5907\u6ce8\u8bf4\u660e"

    aput-object v3, v1, v2

    const/16 v2, 0x8

    const-string/jumbo v3, "\u6761\u5f62\u7801"

    aput-object v3, v1, v2

    const/16 v2, 0x9

    const-string/jumbo v3, "\u54c1\u724c"

    aput-object v3, v1, v2

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->g:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x6

    new-array v1, v1, [Ljava/lang/String;

    const-string/jumbo v2, "\u9500\u552e\u5355\u53f7"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u4e1a\u52a1\u5458"

    aput-object v2, v1, v5

    const-string/jumbo v2, "\u4ea4\u8d27\u65e5\u671f"

    aput-object v2, v1, v6

    const-string/jumbo v2, "\u5907\u6ce8\u8bf4\u660e"

    aput-object v2, v1, v7

    const-string/jumbo v2, "\u6761\u5f62\u7801"

    aput-object v2, v1, v8

    const/4 v2, 0x5

    const-string/jumbo v3, "\u54c1\u724c"

    aput-object v3, v1, v2

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->h:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x6

    new-array v1, v1, [Ljava/lang/String;

    const-string/jumbo v2, "\u9000\u8d27\u5355\u53f7"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u4e1a\u52a1\u5458"

    aput-object v2, v1, v5

    const-string/jumbo v2, "\u9000\u8d27\u65e5\u671f"

    aput-object v2, v1, v6

    const-string/jumbo v2, "\u5907\u6ce8\u8bf4\u660e"

    aput-object v2, v1, v7

    const-string/jumbo v2, "\u6761\u5f62\u7801"

    aput-object v2, v1, v8

    const/4 v2, 0x5

    const-string/jumbo v3, "\u54c1\u724c"

    aput-object v3, v1, v2

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->i:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x7

    new-array v1, v1, [Ljava/lang/String;

    const-string/jumbo v2, "\u8c03\u62e8\u5355\u53f7"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u8c03\u5165\u4ed3\u5e93"

    aput-object v2, v1, v5

    const-string/jumbo v2, "\u8c03\u51fa\u4ed3\u5e93"

    aput-object v2, v1, v6

    const-string/jumbo v2, "\u8c03\u62e8\u65e5\u671f"

    aput-object v2, v1, v7

    const-string/jumbo v2, "\u5907\u6ce8\u8bf4\u660e"

    aput-object v2, v1, v8

    const/4 v2, 0x5

    const-string/jumbo v3, "\u6761\u5f62\u7801"

    aput-object v3, v1, v2

    const/4 v2, 0x6

    const-string/jumbo v3, "\u54c1\u724c"

    aput-object v3, v1, v2

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->j:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x7

    new-array v1, v1, [Ljava/lang/String;

    const-string/jumbo v2, "\u63d0\u8d27\u5355\u53f7"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u63d0\u8d27\u8f66\u8f86"

    aput-object v2, v1, v5

    const-string/jumbo v2, "\u63d0\u8d27\u4ed3\u5e93"

    aput-object v2, v1, v6

    const-string/jumbo v2, "\u7533\u8bf7\u65e5\u671f"

    aput-object v2, v1, v7

    const-string/jumbo v2, "\u5907\u6ce8\u8bf4\u660e"

    aput-object v2, v1, v8

    const/4 v2, 0x5

    const-string/jumbo v3, "\u6761\u5f62\u7801"

    aput-object v3, v1, v2

    const/4 v2, 0x6

    const-string/jumbo v3, "\u54c1\u724c"

    aput-object v3, v1, v2

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->k:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x7

    new-array v1, v1, [Ljava/lang/String;

    const-string/jumbo v2, "\u56de\u5e93\u5355\u53f7"

    aput-object v2, v1, v4

    const-string/jumbo v2, "\u56de\u5e93\u8f66\u8f86"

    aput-object v2, v1, v5

    const-string/jumbo v2, "\u56de\u5e93\u4ed3\u5e93"

    aput-object v2, v1, v6

    const-string/jumbo v2, "\u7533\u8bf7\u65e5\u671f"

    aput-object v2, v1, v7

    const-string/jumbo v2, "\u5907\u6ce8\u8bf4\u660e"

    aput-object v2, v1, v8

    const/4 v2, 0x5

    const-string/jumbo v3, "\u6761\u5f62\u7801"

    aput-object v3, v1, v2

    const/4 v2, 0x6

    const-string/jumbo v3, "\u54c1\u724c"

    aput-object v3, v1, v2

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->l:Ljava/util/ArrayList;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->q:I

    const/16 v0, 0x3a

    iput v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->C:I

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->A:Landroid/widget/EditText;

    return-object v0
.end method

.method private a()V
    .locals 3

    const-string/jumbo v0, "\u6b63\u5728\u83b7\u53d6\u6253\u5370\u6a21\u677f..."

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/base/print/a/a/c;

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    invoke-direct {v1, v0, v2}, Lcom/waiqin365/base/print/a/a/c;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/base/print/a/b;

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->E:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/base/print/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/print/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/print/a/b;->start()V

    return-void
.end method

.method private a(I)V
    .locals 3

    const v2, 0x7f02012d

    const v1, 0x7f020129

    packed-switch p1, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->y:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->z:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    const/16 v0, 0x50

    iput v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->C:I

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->z:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->y:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    const/16 v0, 0x3a

    iput v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->C:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(I)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 9

    const/4 v8, 0x1

    const/4 v2, 0x0

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const/16 v0, 0x2c

    invoke-static {p1, v0, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->G:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v1, v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->G:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/print/view/PrintFieldItemView;

    move v3, v2

    :goto_1
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-ge v3, v6, :cond_0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->a()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    invoke-virtual {v0, v8}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setStatus(Z)V

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v5, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    invoke-virtual {v4, v5}, Ljava/util/ArrayList;->removeAll(Ljava/util/Collection;)Z

    invoke-virtual {v5}, Ljava/util/ArrayList;->clear()V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_2
    move v1, v2

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->F:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v1, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->F:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/print/view/PrintFieldItemView;

    move v3, v2

    :goto_3
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-ge v3, v6, :cond_3

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->a()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    invoke-virtual {v0, v8}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setStatus(Z)V

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v5, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_3
    invoke-virtual {v4, v5}, Ljava/util/ArrayList;->removeAll(Ljava/util/Collection;)Z

    invoke-virtual {v5}, Ljava/util/ArrayList;->clear()V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_4
    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    :cond_5
    return-void
.end method

.method static synthetic b(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->B:Landroid/widget/EditText;

    return-object v0
.end method

.method private b()V
    .locals 1

    new-instance v0, Lcom/waiqin365/base/print/x;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/print/x;-><init>(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->E:Landroid/os/Handler;

    return-void
.end method

.method private c()V
    .locals 4

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(I)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->b(Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v0

    const-string/jumbo v1, "esssCarSaleParam"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    const-string/jumbo v2, ""

    const-string/jumbo v1, ""

    if-eqz v0, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "esssCarSalePrintHead"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "esssCarSalePrintBottom"

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, ""

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->A:Landroid/widget/EditText;

    invoke-virtual {v2, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->B:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    return-void

    :cond_0
    move-object v0, v1

    move-object v1, v2

    goto :goto_0
.end method

.method private d()V
    .locals 8

    const/4 v7, 0x1

    const/16 v5, 0x8

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "template_type"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->q:I

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    iget v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->q:I

    packed-switch v0, :pswitch_data_0

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f08048b

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->w:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_0
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_1

    const v0, 0x7f0c09db

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c09d9

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    move v1, v2

    :goto_1
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_6

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    new-instance v5, Lcom/waiqin365/base/print/view/PrintFieldItemView;

    invoke-direct {v5, p0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v5, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setLabel(Ljava/lang/String;)V

    const-string/jumbo v6, "\u5907\u6ce8\u8bf4\u660e"

    invoke-virtual {v6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    const-string/jumbo v0, "remark"

    invoke-virtual {v5, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setKey(Ljava/lang/String;)V

    :goto_2
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne v1, v0, :cond_5

    invoke-virtual {v5, v2}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setBottomLineStatus(Z)V

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->F:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f080484

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "3"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f080485

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "4"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->i:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f080486

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "2"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->g:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f080487

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "1"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    goto/16 :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f080488

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "5"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->j:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    :pswitch_5
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f080489

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "6"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    :pswitch_6
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f08048a

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "7"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->l:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    sget-object v0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    :pswitch_7
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    const v1, 0x7f08048c

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "8"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    goto/16 :goto_0

    :cond_2
    const-string/jumbo v6, "\u6761\u5f62\u7801"

    invoke-virtual {v6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    const-string/jumbo v0, "barcode"

    invoke-virtual {v5, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setKey(Ljava/lang/String;)V

    goto/16 :goto_2

    :cond_3
    const-string/jumbo v6, "\u54c1\u724c"

    invoke-virtual {v6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    const-string/jumbo v0, "brand"

    invoke-virtual {v5, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setKey(Ljava/lang/String;)V

    goto/16 :goto_2

    :cond_4
    invoke-virtual {v5, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setKey(Ljava/lang/String;)V

    goto/16 :goto_2

    :cond_5
    invoke-virtual {v5, v7}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setBottomLineStatus(Z)V

    goto/16 :goto_3

    :cond_6
    move v1, v2

    :goto_4
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_8

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    new-instance v3, Lcom/waiqin365/base/print/view/PrintFieldItemView;

    invoke-direct {v3, p0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setLabel(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setKey(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne v1, v0, :cond_7

    invoke-virtual {v3, v2}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setBottomLineStatus(Z)V

    :goto_5
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->G:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_4

    :cond_7
    invoke-virtual {v3, v7}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->setBottomLineStatus(Z)V

    goto :goto_5

    :cond_8
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method

.method private e()V
    .locals 2

    const v0, 0x7f0c09dd

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->F:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09da

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->G:Landroid/widget/LinearLayout;

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->n:Landroid/widget/ImageView;

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->o:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->n:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->p:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->p:Landroid/widget/TextView;

    const v1, 0x7f08078d

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->p:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c09d1

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->r:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09c6

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->u:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09d7

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->v:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09dc

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->w:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0092

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->x:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09d2

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->s:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09d4

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->t:Landroid/widget/LinearLayout;

    const v0, 0x7f0c09d3

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->y:Landroid/widget/ImageView;

    const v0, 0x7f0c09d5

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->z:Landroid/widget/ImageView;

    const v0, 0x7f0c09d6

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->A:Landroid/widget/EditText;

    const v0, 0x7f0c09d8

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->B:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->s:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private f()V
    .locals 3

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->g()Ljava/util/HashMap;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/waiqin365/base/print/a/a/e;

    invoke-direct {v2, v1, v0}, Lcom/waiqin365/base/print/a/a/e;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/base/print/a/b;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->E:Landroid/os/Handler;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/base/print/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/print/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/print/a/b;->start()V

    return-void
.end method

.method private g()Ljava/util/HashMap;
    .locals 5

    const/4 v2, 0x0

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->G:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->G:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/print/view/PrintFieldItemView;

    iget-boolean v3, v0, Lcom/waiqin365/base/print/view/PrintFieldItemView;->a:Z

    if-eqz v3, :cond_0

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    move v1, v2

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->F:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v1, v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->F:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/print/view/PrintFieldItemView;

    iget-boolean v3, v0, Lcom/waiqin365/base/print/view/PrintFieldItemView;->a:Z

    if-eqz v3, :cond_2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v0}, Lcom/waiqin365/base/print/view/PrintFieldItemView;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    :cond_4
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "data.title"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->A:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "data.footer"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->B:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "data.width"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget v3, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->C:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "data.field_codes"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "data.function_type"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-object v0
.end method

.method private h()V
    .locals 4

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->g()Ljava/util/HashMap;

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/base/print/PrintPreviewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "from"

    const-string/jumbo v2, "setting"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "function_type"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->D:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "head"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->A:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "footer"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->B:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "fieldConfig"

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->m:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "width"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget v3, p0, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->C:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->back()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->f()V

    goto :goto_0

    :sswitch_2
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(I)V

    goto :goto_0

    :sswitch_3
    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(I)V

    goto :goto_0

    :sswitch_4
    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->h()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0092 -> :sswitch_4
        0x7f0c01da -> :sswitch_0
        0x7f0c0309 -> :sswitch_1
        0x7f0c09d2 -> :sswitch_2
        0x7f0c09d4 -> :sswitch_3
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0301d3

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->e()V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->d()V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->c()V

    return-void
.end method
